<template>
  <div class="w-full h-full  leftunity">
    <component :key="rightkey" :is="activemenu.componentright"></component>
  </div>
</template>
<script lang="ts" setup>
const props = defineProps({
  activemenu: {
    type: Object,
    default: () => {
      return {}
    }
  }
})
const rightkey = ref(0)
watch(
  () => props.activemenu,
  (newval) => {
    rightkey.value++
  }
)
</script>
